package com.puppet.listener.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class directListener {
    @RabbitListener(queues = "directQueue1")
    public void directQueue1(String message) {
        System.out.println("directQueue1:" + message);
    }

    @RabbitListener(queues = "directQueue2")
    public void directQueue2(String message) {
        System.out.println("directQueue2:" + message);
    }
}
